Packages

c

com.fsf.news.controller

NewsController

class NewsController extends Controller

Controller for handling news-related requests.

Annotations
@Slf4j() @Singleton()
Linear Supertypes
Controller, HeaderNames, Status, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NewsController
  2. Controller
  3. HeaderNames
  4. Status
  5. Results
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected
  3. Private

Instance Constructors

  1. new NewsController(service: NewsService, sourcesService: NewsSourcesService, view: NotilyticsView, wordStatsView: WordStatsView, sourceProfileView: SourceProfileView, errorView: ErrorView, formFactory: FormFactory, messagesApi: MessagesApi)
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def error(request: Request): CompletionStage[Result]

    Renders the error view for any client or server errors.

    Renders the error view for any client or server errors.

    request

    The current HTTP request

    returns

    A CompletionStage with an OK result with the rendered error HTML view

  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def index(): CompletionStage[Result]

    Redirects to the NotiLytics page.

    Redirects to the NotiLytics page.

    returns

    A CompletionStage of the redirect result to the NotiLytics page

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. def notilytics(request: Request): CompletionStage[Result]

    Renders the NotiLytics HTML view with default search criteria for the running session.

    Renders the NotiLytics HTML view with default search criteria for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage with an OK result with the rendered NotiLytics HTML view

  17. def search(request: Request): CompletionStage[Result]

    Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage containing the result of the search operation

  18. def sourceByName(name: String): CompletionStage[Result]

    Retrieves and renders the profile for a given news source by its name.

    Retrieves and renders the profile for a given news source by its name.

    name

    The name of the news source

    returns

    A CompletionStage with an OK result containing the rendered source profile

  19. def sources(request: Request): CompletionStage[Result]

    Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage containing the result of the search operation

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. def wordStats(request: Request, uuid: UUID): CompletionStage[Result]

    Retrieves and renders the word statistics for a given search result in the current session.

    Retrieves and renders the word statistics for a given search result in the current session.

    uuid

    The UUID of the search result

    returns

    A CompletionStage with an OK result containing the rendered word statistics

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Controller

Inherited from HeaderNames

Inherited from Status

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped